import { createRouter, createWebHistory } from 'vue-router'
import TabBar from '../components/TabBar.vue'

const routes = [
  
   {
     path: '/',
    name: 'login',
  
    components:{
      default:() => import('../views/login/index.vue'),
      footer:TabBar
    } 
  },
   {
     path: '/register',
    name: 'register',
  
    components:{
      default:() => import('../views/register/index.vue'),
      footer:TabBar
    } 
  },
   {
     path: '/user',
    name: 'user',
  
    components:{
      default:() => import('../views/user/index.vue'),
      footer:TabBar
    } 
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
